<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh">
<head>
  <title>User</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Custom Theme files -->
  <link href="font-awesome.min.css" rel="stylesheet" type="text/css" media="all">
  <link href="snow.css" rel="stylesheet" type="text/css" media="all" />
  <link href="style.css" rel="stylesheet" type="text/css" media="all" />
  <!-- //Custom Theme files -->
</head>
<body>
<div class="snow-container">
  <div class="snow foreground"></div>
  <div class="snow foreground layered"></div>
  <div class="snow middleground"></div>
  <div class="snow middleground layered"></div>
  <div class="snow background"></div>
  <div class="snow background layered"></div>
</div>
<h1>Yellow Team Identity Provider</h1>
<div class="main-agileits">
  <!--form-stars-here-->
  <div class="form-w3-agile">
    <h2 class="sub-agileits-w3layouts">基于Token认证方式</h2>
    <form action="#" method="post">
      <div class="top-buttons-agileinfo">
        <ul th:if="${isIdP}==true" th:each="map : ${grantedAuthsList}">
          <li>
            <a class="singleUser" th:href="${map.loginUrl}"
               th:text="'登录HUAWEI Cloud (' + ${map.auth} + ')'">
            </a>
          </li>
        </ul>
        <hr/>
        <a class="Token" th:href="@{/users/addUser}" th:if="${isAdmin}==true">添加账户 (admin)</a>
      </div>
      <div class="submit-w3l">
        <a class="logout" th:href="@{/logout}">Logout</a>
      </div>
    </form>
  </div>
</div>
<div style="padding-left: 440px; padding-top: 10px; width: 600px">
  <p class="remark p">The following information is stored in your authentication</p>
  <h6 class="remarkb" th:text="'Name'"></h6>
  <ul>
    <li class="remark" th:text="'    - ' + ${user.name}"></li>
  </ul>
  <h6 class="remarkb" th:text="'Authority'"></h6>
  <ul th:each="authority : ${user.authorities}">
    <li class="remark" th:text="'    - ' + ${authority.authority}"></li>
  </ul>
</div>
<!--//form-ends-here-->
<script type="text/javascript" src="/jquery-2.1.4.min.js"></script>
</body>
</html>
